package com.my.test.swing;

/**
 * 
 * @author Creat
 *
 */
public class Flight {

	private String src;
	private String desc;
	private String flightNo;
	private Integer remainTic;
	public String getSrc() {
		return src;
	}
	public void setSrc(String src) {
		this.src = src;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getFlightNo() {
		return flightNo;
	}
	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}
	public Integer getRemainTic() {
		return remainTic;
	}
	public void setRemainTic(Integer remainTic) {
		this.remainTic = remainTic;
	}
	
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		Flight f = (Flight) obj;
		return getSrc().equals(f.getSrc()) && getDesc().equals(f.getDesc()) && 
			getFlightNo().equals(f.getFlightNo());
	}
	
	
	
}
